package com.cc.flyingfish.controller;


import com.cc.flyingfish.service.PointsService;
import com.cc.flyingfish.vo.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author CHENCHEN
 * @since 2023-03-08
 */
@RestController
@RequestMapping("/pointsEntity")
public class PointsController {


    @Autowired
    private PointsService pointsService;

    @GetMapping("index")
    public CommonResponse index(){
        return pointsService.insertPoints();

    }
}

